package com.junxian.springboot01.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 从application中给实体类赋值
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "pojo.user")
@Component
public class User {

    private String id;

    private String name;

    private Integer age;

    private String address;

}
